
// navigator 浏览器信息
const navigator1 = navigator.userAgent
const a = navigator1.indexOf('chrome')
console.log(navigator1,a)

// screen 屏幕的信息
console.log(screen.height,screen.width)

// location     地址的信息
console.log(location.href)
console.log(location.host)  //主机名称
console.log(location.pathname)  //路径名称
console.log(location.protocol) //协议 =》https
console.log(location.search)  //参数 ?a=123&&b=234
console.log(location.hash)   // //#号后面的东西  #autor

// history  历史信息
console.log(history.back())
console.log(history.forward())
